home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / cptuts22.arj / BOX.H < prev    next >
Text File  |  1992-01-20  |  375b  |  19 lines

  1.                                  // Chapter 5 - Program 7
  2.  
  3. class box {
  4.    int length;
  5.    int width;
  6. public:
  7.    box(void);         //Constructor
  8.    void set(int new_length, int new_width);
  9.    int get_area(void) {return (length * width);}
  10.    ~box(void);        //Destructor
  11. };
  12.  
  13.  
  14.  
  15.  
  16. // Result of execution
  17. //
  18. // This header file cannot be compiled or executed
  19.